#ifndef _LOGO_H
#define _LOGO_H
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <stdbool.h>
#include <time.h>
#include <math.h>

#ifndef MAXVALUE
#define MAXVALUE 1000
#endif

#ifndef MAXLONG
#define MAXLONG 100
#endif

//var
extern char wordName[MAXVALUE][MAXLONG];
extern char wordValue[MAXVALUE][MAXLONG];
extern int wordLen;
extern char input[MAXVALUE];
extern int inputLen;
extern int testP;
extern char toName[MAXLONG][10][MAXLONG];
extern int toPar[MAXLONG];
extern char toValue[MAXLONG][10][MAXLONG];
extern char toAns[MAXVALUE];
extern int toLen;



//cmd
extern  void putInput(char*);
extern  void putcharInput(char);
  
extern  void make(void);
extern  void print(void);
extern  void test(void);
extern  void run(void);
extern  void cmdIf(void);
extern  void iftrue(void);
extern  void iffalse(void);
extern  void repeat(void);
extern  void erase(void);
extern  void eraseall(void);
extern  void wait(void);
extern  void load(void);
extern  void save(void);
extern  void to(void);
extern  void output(void);
extern  void stop(void);

//fuc
//extern  double evaluation(char*);
extern  int op(char);
extern  char *findWord(char*);
extern  char *getInput(void);
extern  char getcharInput(void);
extern  char *getValue(void);
        
extern  char *thing(void);
extern  char *readlist(void);
extern  char *and(void);
extern  char *or(void);
extern  char *not(void);
extern  char *random(void);
extern  char *fucRemainder(void);
extern  char *fucSqrt(void);
extern  char *fucInt(void);
extern  char *numberp(void);
extern  char *wordp(void);
extern  char *listp(void);
extern  char *emptyp(void);
extern  char *equalp(void);
extern  char *namep(void);
extern  char *fucWord(void);
extern  char *sentence(void);
extern  char *first(void);
extern  char *last(void);
extern  char *butfirst(void);
extern  char *butlast(void);

//extern char *cmdName[];//=
       //{"MAKE","PRINT","RUN"};//,"IF","TEST","IFTRUE","IFFALSE","REPEAT","TO","ERASE","ERASEALL","WAIT","LOAD","SAVE"};
//extern int cmdNumber;//= sizeof(cmdName)/sizeof(char*);
//extern void (*cmdP[])(void);/*=
/*       {make,print,run};,cmdIf,test,iftrue,iffalse,repeat,
        to,erase,eraseall,wait,load,save};*/
#endif
